function test(){
	Ext.form.Field.prototype.msgTarget = 'side';
	Ext.QuickTips.init(); 
	 var pm=decodeURI(window.location.href);
	 var num=pm.indexOf("?");
	 var jsonObj = Ext.util.JSON.decode(pm.substring(num+1));
	 var resultDs = new Ext.data.Store({
		proxy: new Ext.data.HttpProxy({
			url: DISPATCH_URL
		}),
		reader: new Ext.data.JsonReader({
			root: 'results',
			totalProperty: 'totalCount',
			id:   'id',
			fields:[
						{name: 'id'},
					    {name: 'name'},
					    {name: 'type'},
					    {name: 'p_type'},
					    {name: 'updateTime'},
					    {name: 'keywords'},
					    {name: 'tags'},
					    {name: 'actors'},
					    {name: 'directors'},
					    {name: 'description'}
				   ]
		})
	});
	resultDs.baseParams = {cmd:'search',action:'searchPreview',json:Ext.util.JSON.encode(jsonObj)};
	 var resultSm =new Ext.grid.RowSelectionModel({singleSelect:true});
	 var resultCm = new Ext.grid.ColumnModel([
		new Ext.grid.RowNumberer(),
		{header:TXT_info_name,dataIndex:'name',width:190,renderer:function(v){
			if(v.length > 10)
				return "<div ext:qtip='"+v+"'>" +  v.substring(0,10)+"..." + "</div>";
			return v; 
		}},
		{header:TXT_info_type,dataIndex:'type',width:60,renderer:function(v){
			if(v.length > 3)return "<div ext:qtip='"+v+"'>" +  v.substring(0,3)+"..." + "</div>";
			return  v;
		}},
		{header:TXT_info_p_type,dataIndex:'p_type',width:70,renderer:function(v){
			if(v.length > 3)return "<div ext:qtip='"+v+"'>" +  v.substring(0,3)+"..." + "</div>";
			return  v;
		}},
		{header:'更新时间',dataIndex:'updateTime',width:108,renderer:function(v){return v.substring(2);}},
		{header:'关键字',dataIndex:'keywords',width:178,renderer:function(v){
			if(v.length > 13)return "<div ext:qtip='"+v+"'>" +  v.substring(0,13)+"..." + "</div>";
			return v; 
		}},
		{header:'标签',dataIndex:'tags',width:75,renderer:function(v){
			if(v.length > 3)return "<div ext:qtip='"+v+"'>" +  v.substring(0,3)+"..." + "</div>";
			return v; 
		}},
		{header:'演员',dataIndex:'actors',width:68,renderer:function(v){
			if(v.length > 3)return "<div ext:qtip='"+v+"'>" +  v.substring(0,3)+"..." + "</div>";
			return v;
		}},
		{header:'导演',dataIndex:'directors',width:68,renderer:function(v){
			if(v.length > 3) return "<div ext:qtip='"+v+"'>" +  v.substring(0,3)+"..." + "</div>";
			return v;
		}},
		{header:TXT_info_description,dataIndex:'description',width:118,
			renderer:function(v){  
				if(v.length > 6)return "<div ext:qtip='"+v+"'>" +  v.substring(0,6)+"..." + "</div>";
				return v; }
			}
	]);
	var resultGrid = new Ext.grid.GridPanel(
		{
			border:false,
			title:'搜索条件：' + jsonObj.searchCondition,
			el: 'grid',
			ds: resultDs,
			cm: resultCm,
			sm: resultSm,
			stripeRows: true,
			loadMask: true,
			viewConfig:{forceFit:true},
			bbar: new Ext.PagingToolbar(
				{
					pageSize: 18,
					store: resultDs,
					displayInfo: true,
					displayMsg: TXT_common_paging,
					emptyMsg: TXT_common_no
				})
		}
	);
	BestvSearch.glb_mainPanel.add(resultGrid);
	BestvSearch.drawMainFrame(TXT_app_name + ' - ' + TXT_search_title);
	resultDs.load({params:{start:0, limit:18}});
}
Ext.onReady(test);

